<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@page import="cooper.classes.dao.ServicoDAO" %>
<%@page import="cooper.classes.bean.TipoServicoBean" %>

<%@page import="cooper.classes.bean.CooperativaBean" %>
<% CooperativaBean cooperativa = (CooperativaBean) session.getAttribute("beanCooperativa");%>
<% ServicoDAO servDao = new ServicoDAO(); %>
<% ArrayList<TipoServicoBean> servicos = (ArrayList<TipoServicoBean>) servDao.consultarTipoServico(); %>

<jsp:include page="includes/top.jsp" />
    
                <!--RIGHT-->
                <div id="right">
                	<div id="tit">Cadastro Prestador SERVI&Ccedil;O</div>
                    <div id="chamada">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper </div>
                    
                    <div id="formulario">
                    	<form action="RecebeDadosServico" method="post">
                          <input type="hidden" name="acao" value="cadastrar"/>
                          <input type="hidden" name="idcooperativa" id="idcooperativa" value="<%= cooperativa.getId() %>"/>
                              <label>
                            	<div id="info">Problema:</div><input type="text" name="problema" id="problema">
                            </label>
                          
                            <label>
                            	<div id="info">Tipo de problema:</div>  
                                <select name="tipoProblema" id="tipoProblema">
                                <option value="1">Selecione</option>
                                <%
                           for (int i = 0; i < servicos.size() ; i++){%>
                                
                                
                           <option value="<%= servicos.get(i).getId() %>"><%= servicos.get(i).getTipoServico() %></option>
                                <%}   

%>
                                
                                </select>
                            </label>
                          
                            <label>
                                <div id="info">Descrição:</div>
                                <textarea rows="13" cols="62" class="border:'1px';" name="descricao"></textarea>
                               
                            </label>
                            <div id="bts">
                            	<input name="fenviarservico" id="fenviarservico" type="submit" class="btpag" value="Enviar" />
                                <input name="reset" type="reset"  class="btpag" value="Limpar" />
                       </div>
                        </form>
                    </div>
                </div>
                <!--FIM RIGHT-->
<jsp:include page="includes/bottom.jsp" />